﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CID.Execution.Support
{
    public static class UrlProvider
    {
        public const string DeploymentControllerServicePath = "DeploymentController";
        public const string DeploymentAgentServicePath = "DeploymentAgent";
        private const string HttpPrefix = "http";

        public static string GetDeploymentControllerUrl(string deploymentControllerAddress)
        {
            return String.Format("{0}://{1}/{2}", HttpPrefix, deploymentControllerAddress, DeploymentControllerServicePath);
        }

        public static string GetDeploymentAgentUrl(string deploymentAgentAddress)
        {
            return String.Format("{0}://{1}/{2}", HttpPrefix, deploymentAgentAddress, DeploymentAgentServicePath);
        }

    }
}
